public class Block {
	
	private String name;
	private int location;
	private int type;
	private Chest chest;
	private Chance chance;
	private Tax tax;
	private Airport airport;
	private Estate estate;
	private Utility utility;
	
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//CONSTRUCTOR//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	
	//legend for type:
	//0 = default
	//1 = estate
	//2 = airport
	//3 = utility
	//4 = chest
	//5 = chance
	//6 = tax
	
	public Block(String tName, int tLocation){
		this.setName(tName);
		this.setLocation(tLocation);				
	}

	
	public Block(){
		this.type = 0;
	}
	
	public Block(Chance chance){
		this.chance = chance;
		this.type = 5;
	}
	
	public Block(Chest chest){
		this.chest = chest;
		this.type = 4;
	}
	
	public Block(Tax tax){
		this.tax = tax;
		this.type = 6;
	}
	
	public Block(Airport airport){
		this.airport = airport;
		this.type = 2;
	}
	
	public Block(Estate estate){
		this.setEstate(estate);
		this.type = 1;
	}
	
	public Block(Utility utility){
		this.setUtility(utility);
		this.type = 3;
	}

	
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//GETTERS AND SETTERS//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	public void setChance(Chance chance) {
		this.chance = chance;
	}



	public Chance getChance() {
		return chance;
	}

	public void setTax(Tax tax) {
		this.tax = tax;
	}

	public Tax getTax() {
		return tax;
	}

	public void setChest(Chest chest) {
		this.chest = chest;
	}

	public Chest getChest() {
		return chest;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setLocation(int location) {
		this.location = location;
	}

	public int getLocation() {
		return location;
	}
	
	public void setType(int type) {
		this.type = type;
	}

	public int getType() {
		return type;
	}
	
	public void setAirport(Airport airport) {
		this.airport = airport;
	}

	public Airport getAirport() {
		return airport;
	}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//FUNCTIONS//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

	public void setEstate(Estate estate) {
		this.estate = estate;
	}

	public Estate getEstate() {
		return estate;
	}

	public void setUtility(Utility utility) {
		this.utility = utility;
	}

	public Utility getUtility() {
		return utility;
	}



	
}
